package main

import (
	"fmt"
	"os"
)

const name = "optimal"

func main() {
	os.Mkdir("tmp", 0755)
	fmt.Println("指针逃逸")

	m := map[int]*string{}
	s := "飞雪无情"
	m[0] = &s
}

// func newString() *string {
// 	s := new(string)
// 	*s = "飞雪无情"
// 	return s
// }

func newString() string {
	s := new(string)
	*s = "飞雪无情"
	return *s
}
